//
//  UIImageView+Extension.swift
//  XiaoweHearingAid
//
//  Created by edy on 2025/9/16.
//

import Foundation
import UIKit


public extension UIImageView {
    
    // repeatCount = 0 为无限
    func animateImages(_ images: [UIImage], duration: TimeInterval, repeatCount: Int = 0) {
        stopAnimating()
        self.animationImages = images
        self.animationDuration = duration
        self.animationRepeatCount = repeatCount
        self.startAnimating()
    }
    
}
